package hk.com.fwd.biz.util;

/**
 * Created by lianghm.ext on 10/8/2019.
 */
public class TransformFiledUtil {

    public static String transformDbModelFiled(String orderBy,String [] arrayFiled){
        if (orderBy!=null&&!orderBy.equals("")){
            String [] words=orderBy.split(" ");
            String index=words[0];
            return arrayFiled[Integer.parseInt(index)].concat(" ").concat(words[1]);
        }
        return "";

    }
}
